Capital | function | amount | lowercase | convert CREATE FUNCTION [dbo]. [F_num_eng] (@num numeric (15,2))
RETURNS varchar () with encryption
As
BEGIN
--all rights reserved. Pbsql
DECLARE @i int, @hundreds int, @tenth int, @one int
DECLARE @thousand
Unlimited classification of mysql stored procedures
Drop table if exists 'pcms _ channel ';
Create table if not exists 'pcms _ channel '(
'Cid' tinyint (3) unsigned not null auto_increment,
'Name' char (10) not null comment' channel name
1. If else
If else is similar to the select structure statement, similar to If else in programming language. Syntax:
If expression then execution statement[Elseif expression then execution statement][Else execution statement]End if;
Print the
This article describes how to use Mysqli to operate a database in the PHP getting started tutorial. it involves the basic connection, encoding settings, query, modification, transaction rollback, and other operation skills of php + mysqli to operate
DROP TABLE IF EXISTS ' Pcms_channel ';
CREATE TABLE IF not EXISTS ' Pcms_channel ' (
' CID ' tinyint (3) unsigned not NULL auto_increment,
' Name ' char ' not NULL COMMENT ' channel name ',
' ParentID ' tinyint (4) not NULL COMMENT ' parent id ',
In many cases, we will use a sequential number with a specified length. If we generate an order encoding rule, we will set it to Warehouse encoding + year, month, and day (6 digits) + four sequential numbers for the current day, for example, the
CopyCode The Code is as follows: Alter function udf_util_convertcurrencytoenglish
(
@ Money numeric (15,2 ),
@ Unit varchar (10) = 'baht'
) Returns varchar (400)
As
/*
///
/// Convert money to English
///
/// e.g. 1234.56
/// e.g. 'baht '
///
MySQL 5.6 is coming soon, and 5.6 has made many optimizations to the optimizer. This time I mainly explain MRR (MULTI-RANGE-READ ).
I used stored procedures to explain the changes in this process. Let's take a look.
For statements:
The most basic rule is that xml data cannot be compared with other data types, that is, xml data cannot appear on any side of the equal sign. For our database, we didn't want everyone to use the XML data type. Since this is very useful, and the
Copy codeThe Code is as follows:Alter Function UDF_Util_ConvertCurrencyToEnglish(@ Money Numeric (15,2 ),@ Unit varchar (10) = 'baht') Returns Varchar (400)As/*/// /// Convert money to english/// /// e.g. 1234.56 /// e.g. 'baht '/// english money
MySQL Learning note-Custom function comment syntax:MySQL server supports 3 kinds of annotation styles:
From the ' # ' character from the end of the line.
From the ' – ' sequence to the end of the line. Note that the ' – ' (double dash)
Requires a collection of 2 sets.Set set, as follows1 ImportJava.util.HashSet;2 ImportJava.util.Set;3 4 Public classSettest {5 Public Static voidMain (string[] args) {6Set set1=NewHashset();7Set set2=NewHashset();8Set result=NewHashset();9
First, backgroundA friend of the previous time group asked a question: "Add an increment sequence to the query, such as: 0x00000001, that is, each is a 36-digit (0-9,A--Z), and 0x0000000z is followed by 0x00000010, creating a mapping table like the
"Student grades A90 B80 C70 D60 E60 According to student number and student grade"Select field list into variable list from table the Where condition deposits the values from the field list in a record into the variable list, the variables in the
Databases: Database;Tables: Table;Fields: field, column columns;Row: row, recording record;Temporarily stop the service: net stop WAMPMYSQLD64Start service: net start WAMPMYSQLD64Log in to the database:Note: After logging into the database system,
Original: SQL Server binary conversion functionFirst, backgroundA friend of the previous time group asked a question: "Add an increment sequence to the query, such as: 0x00000001, that is, each is a 36-digit (0-9,A--Z), and 0x0000000z is followed by
Function: Implement in-SQL internal conversion, support conversion from 2-93, if you need to support other characters, you can customize the @ym variable to achieve expansion1 -- =============================================2 --Author:bwch3 --Create
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.